
var bowlingApp = {
    
    init: function() {
        
        var players = [new Player("Penny", 24, "right"), 
                       new Player("Leonard", 28, "left"), 
                       new Player("Sheldon", 29, "right")];
        
        var game1 = new BowlingGame(players);
        
        game1.play();
        game1.showScoreBoard();
        
        console.log(game1.getPlayers());
    }
};

window.onload = bowlingApp.init;